﻿using System.Configuration;
using IGolovkine.ShoutCastRipper;
using System.Collections.Generic;

namespace IGolovkine.ShoutCastRipper.Service.Configuration
{
    public class DatePatternElementCollection : ConfigurationElementCollection<DatePatternElement>
    {
        private const string DatePatternTag = "datePattern";

        public DatePatternElementCollection() : base(DatePatternTag)
        {
        }

        protected override object GetElementKey(DatePatternElement element)
        {
            return element.Regex;
        }
    }
}
